import './assets/main.scss'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createApp } from 'vue'
import {createPinia} from 'pinia'//导入pinia
import locale from 'element-plus/dist/locale/zh-cn.mjs'//导入element-plus的中文语言包
import router from '@/router'//导入路由，由于只写了文件夹名，所以会自动寻找index.js
import App from './App.vue'
import { createPersistedState } from 'pinia-persistedstate-plugin'//导入pinia持久化插件

const app=createApp(App);
const pinia=createPinia();
const persist=createPersistedState();
pinia.use(persist);
app.use(pinia);
app.use(router);
app.use(ElementPlus,{locale});
app.mount('#app')
